import { createRouter, createWebHistory } from 'vue-router'
import MainPage from "../views/MainPage.vue"
import Login from "../views/Login.vue";
import Table from "../views/Table.vue";
import Icons from "../views/Icons.vue";

const routes=[
    {path: "/", name:"MainPage", component: MainPage, children: [
        {path: "/table", name:"Table", component: Table},
    ]},
    {path: "/login", name:"Login", component: Login},
    {path: "/icons", name:"Icons", component: Icons},
]

const router= createRouter({
    history: createWebHistory(),
    routes
})



export default router;
